package com.meilai.project.vo.business.installOrder;

import lombok.Data;

/**
 * @author xchen
 * @since 2022-05-12
 */
@Data
public class WorkerOrderPointPublishVO {
	private Long bill_sale_id;
	private Long work_order_id;
	private String work_order_name;
	private Integer media_type_id;
	private String media_type_name;
	private Integer publish_count;
	private Integer total_count;

	public String uniqueKey(){
		return work_order_id + "_" + media_type_id;
	}

	public WorkerOrderPointPublishInfoVO to(){
	    WorkerOrderPointPublishInfoVO workerOrderPointPublishInfoVO = new WorkerOrderPointPublishInfoVO();
	    workerOrderPointPublishInfoVO.setBill_sale_id(this.getBill_sale_id());
	    workerOrderPointPublishInfoVO.setWorker_order_id(this.getWork_order_id());
	    workerOrderPointPublishInfoVO.setWork_order_name(this.getWork_order_name());
	    return workerOrderPointPublishInfoVO;
	}

	public WorkerOrderPointPublishItemVO toItem(){
	    WorkerOrderPointPublishItemVO workerOrderPointPublishItemVO = new WorkerOrderPointPublishItemVO();
	    workerOrderPointPublishItemVO.setMedia_type_id(this.getMedia_type_id());
	    workerOrderPointPublishItemVO.setMedia_type_name(this.getMedia_type_name());
	    workerOrderPointPublishItemVO.setPublish_count(this.getPublish_count());
	    workerOrderPointPublishItemVO.setTotal_count(this.getTotal_count());
	    return workerOrderPointPublishItemVO;
	}

}
